// import axios from "axios"
import http from "@/utils/request"
// 获取登录信息
export let getLogin = (username:any,password:any) => http.post("/users/login", {
  username,
  password
})
// 获取图片类目
export let getCategory = () => http.get("/category/getCategory")
// 添加图片类目
export let addCategory = (categoryName:string,categoryImgurl?:any) => http.post("/category/addCategory", {
  categoryName,
  categoryImgurl,
})
// 删除类目
export let delCategory = (category_id:string) => http.get("/category/delCategory", {
  params: {
    category_id
  }
})
